package com.ghyf.mplay.net.common;

import com.ghyf.mplay.application.BaseCookie;
import com.ghyf.mplay.bean.GlobalParamInfo;
/**
 * 参数常量类
 * @author cuiran
 * @version 1.0.0
 */
public class GData {
	
	public static int heartbeatPort = 18801;
	public static int controlPort = 18810;
	public static int infoPort = 18820;	
	public static int filePort = 18830;
	public static int serverPort = 18600;
	/**视频回传默认端口***/
	public static int recvDisplayPort = 18812;
	public static int maxPacketLength = 1500;
	
	/**换行符***/
	public static final String NEWLINE="/n";
	/**设备ID***/
	public static  String strDeviceID = GlobalParamInfo.getInstance().getDevice_code();
	public static int deviceStatus = 0;//ERR_OK;
	public static String strFirmwareVersion = "FirmV"+BaseCookie.getRelease();
	public static String strSoftwareVersion = "SoftV"+BaseCookie.getLocalVersionCode();
	public static String strConfigVersion = "ConfV1001";

	
	//#################################################
	//日志部分参数
	//#################################################
	public static String play_file_mark						="PLOG";
	public static String run_file_mark 						="RLOG";
	public static String version_mark 						="0001";
	public static String line_code 							="L10";
	public static String station_code 						="S01";
	/**sd卡中日志文件的最多保存天数  ***/
	public static int sdcard_log_file_save_days             =30;
	
	
	/**所属线路长度***/
	public static final int LINE_CODE_LENGTH                       =3;
	/**所属车站或列车长度***/
	public static final int STATION_CODE_LENGTH                    =4;
	/**设备ID长度***/
	public static final int DEVICE_CODE_LENGTH                     =8;
	/**广告类型长度***/
	public static final int AD_TYPE_LENGTH                     	   =24;
	/**播放类型长度***/
	public static final int PLAY_TYPE_LENGTH                       =24;
	/**播放长度***/
	public static final int PLAY_LENGTH                     	   =12;
	/**操作类型长度***/
	public static final int OPERATION_TYPE_LENGTH                  =24;
	/**预留长度***/
	public static final int RESERVED_LENGTH                  	   =31;
	
	
//	public static String LIVEHOST="218.204.223.237";
//	public static int    LIVEPORT=554;
//	public static String LIVEURL="rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp.";
	//rtsp://218.204.223.237:554/live/1/43217D4E1D3A5390/syiubra2azl52x0g.sdp
	
	public static final String FTP_HOST=GlobalParamInfo.getInstance().getHost();
	//192.168.0.198   235.1.0.1
	public static final String LIVEHOST="239.1.1.0";
	public static final int    LIVEPORT=1234;
//	public static String LIVEURL="rtsp://"+LIVEHOST+":"+LIVEPORT+"/test.sdp";
	public static String LIVEURL="udp://@"+LIVEHOST+":"+LIVEPORT+"";
	//rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp
	public static String LIVEURL_HTTP="http://192.168.0.115/video/Kara-Guilty.mp4";
	public static String LIVEURL_RTSP="rtsp://218.204.223.237:554/live/1/66251FC11353191F/h3bi0gb4lobe12fd.sdp";
	
	
}
